package com.its.cloud.controller;

import com.its.cloud.entity.Order;
import com.its.cloud.entity.ResultBean;
import com.its.cloud.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author huguangjun
 * @className OrderController
 * @date 2021/1/17
 * @desc 16:53
 */
@RestController
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("/order/create")
    public ResultBean create(Order order) {
        orderService.create(order);
        return new ResultBean("订单创建成功");
    }
}
